package com.fastloan.jn.mgt.customer.service.impl;

import com.fastloan.jn.common.BasicServiceImpl;
import com.fastloan.jn.mgt.customer.dao.JnCustomerMaintenanceFileMapper;
import com.fastloan.jn.mgt.customer.model.JnCustomerMaintenance;
import com.fastloan.jn.mgt.customer.service.JnCustomerMaintenanceService;
import com.kawins.result.ResultTo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author chenkai
 *         createTime 2017-10-2017/10/19 15:36
 */
@Service
public class JnCustomerMaintenanceServiceImpl extends BasicServiceImpl<JnCustomerMaintenance> implements JnCustomerMaintenanceService {
    @Autowired
    private JnCustomerMaintenanceFileMapper maintenanceFileMapper;

    @Override
    @Transactional(rollbackFor = Exception.class)
    //TODO 未写文件上传功能
    public ResultTo insert(JnCustomerMaintenance customerMaintenance, MultipartFile[] files) {
        insertSelective(customerMaintenance);

        return null;
    }
}
